remove an entry using key from hashmap while iterating over it

welcome to shbcf.ru